<include file="Public:header" />
<div class="page-member subpage">
    <div class="form-header">
        <div>
            <div class="line1">
                <div class="fl"><h3>公众号订单详情 / {$dingdan.name}</h3></div>
                <div class="fr hidden">
                    <form id="search-form" class="search-form" method="post" action="">
                        <span>申请时间:</span>
                        <input name="ctime1" onclick="laydate({istime: true,format:'YYYY/MM/DD hh:mm'})" style="width:70px;" value="{$where[ctime][1][0]}" type="text" />
                        <span>至</span>
                        <input name="ctime2" onclick="laydate({istime: true,format:'YYYY/MM/DD hh:mm'})" style="width:70px;" value="{$where[ctime][1][1]}" type="text" />
                        <span>终端类型:</span>
                        <select name="client">
                            <option value="all">全部</option>
                            <option <if condition="$where.client eq pc">selected="selected"</if> value="pc">PC</option>
                            <option <if condition="$where.client eq wap">selected="selected"</if> value="wap">WAP</option>
                        </select>
                        <span>支付方式:</span>
                        <select name="type">
                            <option value="all">全部</option>
                            <option <if condition="$where.type eq weixin">selected="selected"</if> value="weixin">微信</option>
                            <option <if condition="$where.type eq alipay">selected="selected"</if> value="alipay">支付宝</option>
                        </select>
                        <span>申请类型:</span>
                        <select name="service" style="width: 100px;">
                            <option value="all">全部</option>
                            <volist name="service" id="vo">
                                <option <if condition="$where[service] eq $vo[name]">selected="selected"</if> value="{$vo.name}">{$vo.name}</option>
                            </volist>
                        </select>
                        <span>付款状态:</span>
                        <select name="state">
                            <option value="all">全部</option>
                            <option <if condition="$where.state eq '未支付'">selected="selected"</if> value="未支付">未支付</option>
                            <option <if condition="$where.state eq '已支付'">selected="selected"</if> value="已支付">已支付</option>
                        </select>
                        <select name="option" style="width:100px;">
                            <option <if condition="$condition.field eq name">selected="selected"</if> value="name">申请人姓名</option>
                            <option <if condition="$condition.field eq phone">selected="selected"</if> value="phone">申请人电话</option>
                            <option <if condition="$condition.field eq qq">selected="selected"</if> value="qq">申请人QQ</option>
                            <option <if condition="$condition.field eq address">selected="selected"</if> value="address">所在地区</option>
                            <option <if condition="$condition.field eq wxgzh">selected="selected"</if> value="wxgzh">公众号名称</option>
                            <option <if condition="$condition.field eq money">selected="selected"</if> value="money">付款金额</option>
                            <option <if condition="$condition.field eq no">selected="selected"</if> value="no">订单号</option>
                            <option <if condition="$condition.field eq payid">selected="selected"</if> value="payid">支付单号</option>
                            <option <if condition="$condition.field eq refer">selected="selected"</if> value="refer">域名</option>
                        </select>
                        <input name="keyword" placeholder="请输入搜索关键字" style="width:100px;"
                               value="{$condition.value}" type="text" />
                        <input name="page" value="{$filter.page}" type="hidden" />
                        <input name="order_field" value="{$filter.order_field}" type="hidden" />
                        <input name="order_sort" value="{$filter.order_sort}" type="hidden" />
                        <button class="btn-normal" type="submit">查 询</button>
                        <button class="btn-normal" onclick="action_export();" type="button">导 出</button>
                    </form>
                </div>
            </div>
            <div class="line2">
                <!-- 编辑按钮组 -->
                <div class="fl form-btn-group btn-group-edit">
                    <in name="$x|default='01-01-02'" value="$rightsCode">
                        <button onclick="action_edit();" class="btn-save btn-highlight">编 辑</button>
                        <else />
                        <button class="btn-create btn-disable" disabled="disabled">编 辑</button>
                    </in>
                    <span>或</span>
                    <a class="linkBtn btn-abort" href="/admin/gzh/index">返回</a>
                </div>
                <!-- 保存按钮组 -->
                <div class="fl form-btn-group btn-group-save hidden">
                    <button onclick="action_save();" class="btn-save btn-highlight">保 存</button>
                    <span>或</span>
                    <a class="linkBtn btn-abort" onclick="action_abort();" href="javascript:void(0);">放弃</a>
                </div>
                <div class="fl form-btn-more">
                    <button class="btn-normal btn-more">
                        更多操作<i class="drop-down"></i>
                    </button>
                    <ul class="more-action hidden">
                        <in name="$x|default='01-01-02'" value="$rightsCode">
                            <li><a onclick="action_del2();" href="javascript:void(0);">删 除</a></li>
                        </in>
                    </ul>
                </div>
                <div class="fr form-search-count">
                    <span class="index">{$context.index}/{$page.total}</span>
                    <button onclick="ItemJump({$page.prev.id}, {$page.prev.offset});" class="btn-normal">上一条</button>
                    <button onclick="ItemJump({$page.next.id}, {$page.next.offset});" class="btn-normal">下一条</button>
                </div>
            </div>
        </div>
    </div>
    <div class="form-box2">
        <div>
            <form id="dingdanForm" method="post" action="">
                <!--表单相关原始信息存储-->
                <input type="hidden" name="id" value="{$dingdan.id}" />
                <input type="hidden" name="old_phone" value="{$dingdan.phone}" />
                <input type="hidden" name="old_name" value="{$dingdan.name}" />
                <input type="hidden" name="old_wxgzh" value="{$dingdan.wxgzh}" />
                <input type="hidden" name="old_remarks" value="{$dingdan.remarks}" />
                <table class="form">
                    <tr>
                        <th width="15%">订单号</th>
                        <td width="35%" field="no">{$dingdan.no}</td>
                        <th width="15%">姓名</th>
                        <td field="name">{$dingdan.name}</td>
                    </tr>
                    <tr>
                        <th>服务</th>
                        <td field="service">{$dingdan.service}</td>
                        <th>价格</th>
                        <td field="money">{$dingdan.money}</td>
                    </tr>
                    <tr>
                        <th>手机号</th>
                        <td field="phone">{$dingdan.phone}</td>
                        <th>公众号名称</th>
                        <td field="wxgzh">{$dingdan.wxgzh}</td>
                    </tr>
                    <tr>
                        <th>申请用途</th>
                        <td field="purpose">{$dingdan.purpose}</td>
                        <th>来源网站</th>
                        <td field="refer">{$dingdan.refer}</td>
                    </tr>
                    <tr>
                        <th>QQ</th>
                        <td field="qq">{$dingdan.qq}</td>
                        <th>订单日期</th>
                        <td field="ctime">{$dingdan.ctime}</td>
                    </tr>
                    <tr>
                        <th>支付状态</th>
                        <td field="state">{$dingdan.state}</td>
                        <th>支付时间</th>
                        <td field="ptime">{$dingdan.ptime}</td>
                    </tr>
                    <tr>
                        <th>支付方式</th>
                        <td field="type">{$dingdan.type}</td>
                        <th>支付编号</th>
                        <td field="payid">{$dingdan.payid}</td>
                    </tr>
                    <tr>
                        <th>地区</th>
                        <td field="province">{$dingdan.province}{$dingdan.city}{$dingdan.area}</td>
                        <th>备注</th>
                        <td field="remarks">{$dingdan.remarks}</td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
<script>

    /**
     * 全局变量 fields  // todo
     */
    var fields = new Array("phone", "wxgzh", "name", "remarks");
</script>
<script src="__JS__/gzh.js?v=0.5" type="text/javascript" ></script>
<include file="Public:footer" />
